package ru.accountservice.server;

public interface AccountService extends AccountStatistic
{
 /**
 * Retrieves current balance or zero if addAmount() method was not called before for specified id
 *
 * @param id balance identifier
 */
 Long getAmount(Integer id);
 
 /**
 * Increases balance or set if addAmount() method was called first time
 *
 * @param id balance identifier
 * @param value positive or negative value, which must be added to current balance
 */
 void addAmount(Integer id, Long value);
}